package com.example.mobile2021606159yhf0329;

import androidx.appcompat.app.AppCompatActivity;

import android.os.Bundle;
import android.view.View;

public class MainActivity extends AppCompatActivity implements View.OnCreateContextMenuListener {
    private TextView tvMainTitle;
    private EditText extTextMainShow;
    private Button btnMainClear;
    boolean clear_flag;
    private Button btnMainMul;
    private Button btnMainDiv;
    private Button btnMainBack;
    private Button btnMainNum7;
    private Button btnMainNum8;
    private Button btnMainNum9;
    private Button btnMainSub;
    private Button btnMainNum4;
    private Button btnMainNum5;
    private Button btnMainNum6;
    private Button btnMainPer;
    private Button btnMainNum1;
    private Button btnMainNum2;
    private Button btnMainNum3;
    private Button btnMainAdd;
    private Button btnMainNum;
    private Button tvMainPoint;
    private Button tvMainEqual;
    String msga, getMsga;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_main);
        initView();
        btnMainNum.setOnClickListener(this);
        btnMainNum1.setOnClickListener(this);
        btnMainNum2.setOnClickListener(this);
        btnMainNum3.setOnClickListener(this);
        btnMainNum4.setOnClickListener(this);
        btnMainNum5.setOnClickListener(this);
        btnMainNum6.setOnClickListener(this);
        btnMainNum7.setOnClickListener(this);
        btnMainNum8.setOnClickListener(this);
        btnMainNum9.setOnClickListener(this);
        btnMainClear.setOnClickListener(this);
        btnMainMul.setOnClickListener(this);
        btnMainDiv.setOnClickListener(this);
        btnMainBack.setOnClickListener(this);
        btnMainPer.setOnClickListener(this);
        btnMainAdd.setOnClickListener(this);
        btnMainSub.setOnClickListener(this);
        tvMainPoint.setOnClickListener(this);
        tvMainEqual.setOnClickListener(this);
    }
}
